# -*- coding: utf-8 -*-
from __future__ import unicode_literals
#from django.http import HttpResponse
from django.shortcuts import render
from django.shortcuts import redirect
from django.shortcuts import HttpResponse
from basic import models
from cron import models as cron_models
from django.db.models import Q,QuerySet
from django.core.paginator import Paginator
import cx_Oracle
import os
import json
from django.http import JsonResponse
from cron import tasks

# Create your views here.

def index(request,*args,**kwargs):
    print (111)
    res=tasks.add.delay(1,3)
    #任务逻辑
    return JsonResponse({'status':'successful','task_id':res.task_id})

